package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 系统通知
 *
 * @author 刘聪
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "系统通知")
@TableName(value = "tz_sys_msg")
public class SysMsg implements Serializable {

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键")
    private Long id;


    /**
     * 通知内容
     */
    @Schema(description = "通知内容")
    @TableField(value = "msg")
    private String msg;

    /**
     * 审核状态
     */
    @Schema(description = "审核状态 0:审核通过")
    @TableField(value = "status")
    private String status;

    /**
     * 创建日期
     */
    @Schema(description = "创建日期")
    @TableField(value = "create_date")
    private LocalDateTime createDate;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    @TableField(value = "create_by")
    private String createBy;


    /**
     * 删除标记
     */
    @Schema(description = "标记")
    @TableField(value = "del_flag")
    private String delFlag;

    public SysMsg(Long id){
        this.id =id;
    }
}
